package com.lap.auth.adapter.driving.query.user;

import java.util.List;

import com.lap.auth.adapter.driving.query.user.po.UserWithOrgPo;
import com.lap.auth.application.user.dto.UserSimpleDto;
import com.lap.auth.application.user.dto.UserWithOrgDto;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import com.lap.auth.adapter.driving.query.user.po.UserSimplePo;
import com.lap.auth.domain.shared.tools.BaseConverter;

@Mapper(componentModel = "spring")
public interface UserQueryConverter extends BaseConverter {

  @Mapping(target = "orgPaths", source = "orgPath")
  UserWithOrgDto toDto(UserWithOrgPo userWithOrgPo);

  List<UserWithOrgDto> toDtoList(List<UserWithOrgPo> list);

  UserSimpleDto toSimpleDto(UserSimplePo userSimplePo);

  List<UserSimpleDto> toSimplesDtoList(List<UserSimplePo> list);
}
